package com.example.review.Fragment;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import androidx.fragment.app.Fragment;

import com.bumptech.glide.Glide;
import com.example.review.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import de.hdodenhof.circleimageview.CircleImageView;

/**
 * A simple {@link Fragment} subclass.
 */
public class PotoFragment extends Fragment {


    @BindView(R.id.imgV)
    ImageView imgV;
    @BindView(R.id.cirImg)
    CircleImageView cirImg;
    private View view;


    public PotoFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        view = inflater.inflate(R.layout.fragment_poto, container, false);
        ButterKnife.bind(this,view);
        initView();
        return view;
    }

    private void initView() {
        Glide.with(getContext()).load("http://www.acgrenwu.com/uploads/allimg/191119/1-1911191F209349.jpg").into(imgV);
        Glide.with(getContext()).load("http://www.acgrenwu.com/uploads/allimg/191216/1-19121622263U13.jpg").into(cirImg);
    }

}
